<template>
  <view class="page">
	<view class="grid">
		<view v-for="(item, index) in noteid" :key="index" class="noteview">
			<noteview :noteid="item"></noteview>
		</view> 

		</view>
  </view>
</template>

<script>
  export default {
    components: {},
    data() {
      return {
		  noteid:[],
		  userid:170532866,
		  keyword:'',
	  };
    },
    onLoad(options) {
    	this.keyword=options.keyword
		let that=this
		uni.request({
			url:'/search/searchByKeyWord/'+that.userid+"/"+that.keyword,
			method:'GET',
		
			success:(res) => {
				console.log(1117+res.data)
				that.noteid=res.data
			}
		})
    },
    methods: {},
  };
</script>

<style scoped lang="scss">
  .page {
    padding: 104.65rpx 0 683.72rpx;
    background-image: linear-gradient(0deg, #fff1eb 0%, #ace0f9 100%);
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
  }
  .grid {
    padding: 0 59.3rpx;
    height: 835.47rpx;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 80.23rpx;
    column-gap: 52.33rpx;}
</style>